Optimal. Leaf size=226 \[ \frac {\sqrt {2} C F_1\left (\frac {1}{2};\frac {1}{2},-\frac {1}{3};\frac {3}{2};\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) \sqrt [3]{a+b \sec (c+d x)} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \sqrt [3]{\frac {a+b \sec (c+d x)}{a+b}}}+\frac {\sqrt {2} (b B-a C) F_1\left (\frac {1}{2};\frac {1}{2},\frac {2}{3};\frac {3}{2};\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} (a+b \sec (c+d x))^{2/3}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 226, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.147, Rules used = {4147, 12, 3919,
144, 143} \begin {gather*} \frac {\sqrt {2} (b B-a C) \tan (c+d x) \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3} F_1\left (\frac {1}{2};\frac {1}{2},\frac {2}{3};\frac {3}{2};\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right )}{b d \sqrt {\sec (c+d x)+1} (a+b \sec (c+d x))^{2/3}}+\frac {\sqrt {2} C \tan (c+d x) \sqrt [3]{a+b \sec (c+d x)} F_1\left (\frac {1}{2};\frac {1}{2},-\frac {1}{3};\frac {3}{2};\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right )}{b d \sqrt {\sec (c+d x)+1} \sqrt [3]{\frac {a+b \sec (c+d x)}{a+b}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 143
Rule 144
Rule 3919
Rule 4147
Rubi steps
\begin {align*} \int \frac {B \sec (c+d x)+C \sec ^2(c+d x)}{(a+b \sec (c+d x))^{2/3}} \, dx &=\frac {\int \frac {(b B-a C) \sec (c+d x)}{(a+b \sec (c+d x))^{2/3}} \, dx}{b}+\frac {C \int \sec (c+d x) \sqrt [3]{a+b \sec (c+d x)} \, dx}{b}\\ &=\frac {(b B-a C) \int \frac {\sec (c+d x)}{(a+b \sec (c+d x))^{2/3}} \, dx}{b}-\frac {(C \tan (c+d x)) \text {Subst}\left (\int \frac {\sqrt [3]{a+b x}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}\\ &=-\frac {((b B-a C) \tan (c+d x)) \text {Subst}\left (\int \frac {1}{\sqrt {1-x} \sqrt {1+x} (a+b x)^{2/3}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)}}-\frac {\left (C \sqrt [3]{a+b \sec (c+d x)} \tan (c+d x)\right ) \text {Subst}\left (\int \frac {\sqrt [3]{-\frac {a}{-a-b}-\frac {b x}{-a-b}}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)} \sqrt [3]{-\frac {a+b \sec (c+d x)}{-a-b}}}\\ &=\frac {\sqrt {2} C F_1\left (\frac {1}{2};\frac {1}{2},-\frac {1}{3};\frac {3}{2};\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) \sqrt [3]{a+b \sec (c+d x)} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \sqrt [3]{\frac {a+b \sec (c+d x)}{a+b}}}-\frac {\left ((b B-a C) \left (-\frac {a+b \sec (c+d x)}{-a-b}\right )^{2/3} \tan (c+d x)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x} \sqrt {1+x} \left (-\frac {a}{-a-b}-\frac {b x}{-a-b}\right )^{2/3}} \, dx,x,\sec (c+d x)\right )}{b d \sqrt {1-\sec (c+d x)} \sqrt {1+\sec (c+d x)} (a+b \sec (c+d x))^{2/3}}\\ &=\frac {\sqrt {2} C F_1\left (\frac {1}{2};\frac {1}{2},-\frac {1}{3};\frac {3}{2};\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) \sqrt [3]{a+b \sec (c+d x)} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} \sqrt [3]{\frac {a+b \sec (c+d x)}{a+b}}}+\frac {\sqrt {2} (b B-a C) F_1\left (\frac {1}{2};\frac {1}{2},\frac {2}{3};\frac {3}{2};\frac {1}{2} (1-\sec (c+d x)),\frac {b (1-\sec (c+d x))}{a+b}\right ) \left (\frac {a+b \sec (c+d x)}{a+b}\right )^{2/3} \tan (c+d x)}{b d \sqrt {1+\sec (c+d x)} (a+b \sec (c+d x))^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(12774\) vs. \(2(226)=452\).
time = 46.02, size = 12774, normalized size = 56.52 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.07, size = 0, normalized size = 0.00 \[\int \frac {B \sec \left (d x +c \right )+C \left (\sec ^{2}\left (d x +c \right )\right )}{\left (a +b \sec \left (d x +c \right )\right )^{\frac {2}{3}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (B + C \sec {\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {2}{3}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{2/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________